package com.wing.device.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.device.model.entity.DeviceModel;
import com.wing.device.model.request.DeviceModelForm;
import com.wing.device.model.response.DeviceModelVO;
import com.wing.res.model.response.DeviceOrWorkVo;
import com.wing.web.excel.DeviceModelExcelIn;

import java.util.List;
import java.util.Map;

/**
 * 设备型号-Service
 *
 * @author
 */
public interface DeviceModelService extends IService<DeviceModel> {

    /**
     * 添加
     *
     * @param deviceModelForm
     * @return
     */
    int add(DeviceModelForm deviceModelForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<DeviceModelVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<DeviceModelVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    DeviceModelVO get4appById(Long id);



    void importExcel(List<DeviceModelExcelIn> list);


    List<DeviceOrWorkVo> fessionlist();

    /**
     * 查询设备列表
     * @return
     */
    List<DeviceOrWorkVo> devicelist();
}
